<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<title>热门现金贷</title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
			box-sizing: border-box;
		}
		.clearfix:after{
			content:".";
			display:block;
			height:0;
			clear:both;
			visibility:hidden
		}
		.clearfix{
			*+height:1%;
		}
		html{
			width: 100%;
		}
		body{
			width: 100%;
			max-width: 640px;
			min-width: 300px;
			margin: 0 auto;
			background: #ee7a27;
		}
		ul,li{
			list-style: none;
		}
		.main{
			padding: 0.2rem;
			padding-top: 0.4rem;
		}
		.list{
			width: 100%;
		}
		.list li{
			width: 100%;
			background: #fff;
			margin-bottom: 0.05rem;
		}
		.list li:first-child{
			border-top-left-radius: 5px;
			border-top-right-radius: 5px;
		}
		.list li a{
			display: block;
			width: 100%;
			height: 100%;
			padding: 0.3rem 0.5rem 0.3rem 0.3rem;
			position: relative;
		}
		.logo{
			float: left;
			width: 0.9rem;
			height: 0.9rem;
			overflow: hidden;
		}
		.logo img{
			display: block;
			width: 100%;
		}
		.introduce{
			float: left;
			padding-left: 0.3rem;
			max-width: calc(100% - 0.9rem);
		}
		.introduce h3{
			font-size: 0.34rem;
			color: #373636;
			margin-bottom: 0.1rem;
		}
		.summary{
			font-size: 0.24rem;
			color: #808080;
		}
		a{
			text-decoration: none;
		}
		.arrow{
			color: #ccc;
			font-size: 0.5rem;
			position: absolute;
			top: 50%;
			right: 0.3rem;
			line-height: 1em;
			margin-top: -0.25rem;
		}
		.header{
			position: relative;
		}
		.header img{
			display: block;
			width: 100%;
		}
		.middle-list{
			padding: 0.3rem 0.2rem 0.65rem;
			background: #fff;
			margin-bottom: 0.05rem;
			display: flex;
			display: -webkit-flex;
			flex-direction: row;
			flex-wrap: wrap;
		}
		.middle-item{
			margin-bottom: 0.2rem;
			width: calc(50% - 0.1rem);
			box-shadow: 0 0 10px rgba(130,104,255,.35);
			border-radius: 8px;
			padding: 0.2rem;
		}
		.middle-item:nth-child(2n+1){
			margin-right: 0.2rem;
		}
		.middle-item a{
			display: block;
			width: 100%;
			height: 100%;
		}
		.middle-item .logo{
			float: initial;
			margin: 0 auto;
		}
		.credit-card h2{
			background: -webkit-linear-gradient(right,#f27ce6,#d887f1,#f27ce6);
			background: -o-linear-gradient(right,#f27ce6,#d887f1,#f27ce6);
			background: -moz-linear-gradient(right,#f27ce6,#d887f1,#f27ce6);
			background: linear-gradient(right,#f27ce6,#d887f1,#f27ce6);
			font-size: 0.32rem;
			color: #fff;
			width: 10em;
			text-align: center;
			margin: 0 auto;
			padding: 0.1rem 0.2rem;
			border-radius: 0.3rem;
		}
		.middle-item h3{
			color: #fff;
			font-size: 0.28rem;
			text-align: center;
			padding: 2px 0.2rem;
			width: 7em;
			position: relative;
			left: 50%;
			-webkit-transform: translateX(-50%);
			-moz-transform: translateX(-50%);
			transform: translateX(-50%);
			border-radius: 0.2rem;
			margin-top: 0.3rem;
			margin-bottom: 0.1rem;
			background: -webkit-linear-gradient(right,#f27ce6,#d887f1,#f27ce6);
			background: -o-linear-gradient(right,#f27ce6,#d887f1,#f27ce6);
			background: -moz-linear-gradient(right,#f27ce6,#d887f1,#f27ce6);
			background: linear-gradient(right,#f27ce6,#d887f1,#f27ce6);
		}
		.middle-item .summary{
			text-align: center;
		}
		.credit-card{
			background: #fff;
			border-bottom-left-radius: 5px;
			border-bottom-right-radius: 5px;
		}
		.credit-card h2{
			position: relative;
			top: -1.1em;
		}
		.card-item{
			border-bottom: 0.05rem solid #828bff;
			position: relative;
		}
		.card-item:last-child{
			border-bottom: none;
		}
		.card-item a{
			display: block;
			width: 100%;
			height: 100%;
			padding: 0.2rem;
		}
		.tab{
			display: block;
			width: 48%;
			background: #fc5391;
			border-top-right-radius:  0.3rem;
			border-bottom-right-radius:  0.3rem;
			font-size: 0.3rem;
			color: #fff;
			padding: 0.1rem 0.1rem 0.1rem 0.3rem;
			margin-bottom: 0.2rem;
			position: relative;
			left: -0.4rem;
		}
		.item-left{
			width: 42%;
		}
		.item-right{
			width: 59%;
			padding-left: 0.2rem;
		}
		.card{
			display: block;
			width: 100%;
		}
		.item-con{
			display: flex;
			align-items: stretch;
		}
		.item-right p{
			color: #4a4a49;
			font-size: 0.2rem;
		}
		.tags{
			margin-top: 0.1rem;
		}
		.tags span{
			float: left;
			color: #3cb5fb;
			font-size: 0.2rem;
			border: 1px solid #3cb5fb;
			border-radius: 5px;
			padding: 2px 5px;
			margin-right: 5px;
		}
		.ranking{
			position: absolute;
			width: 1rem;
			height: 1rem;
			line-height: 1rem;
			text-align: center;
			background: url(/html/daikuan/img/tag.png);
			-webkit-background-size: cover;
			background-size: cover;
			color: #fef56d;
			font-size: 0.3rem;
			top: 0.1rem;
			right: 0.1rem;
			-webkit-transform: rotate(45deg);
			-moz-transform: rotate(45deg);
			transform: rotate(45deg);
		}
		.ranking{
			right: 0.5rem;
			top: 0;
		}
		.custom-service{
			position: absolute;
			top: 4.75rem;
			left: 50%;
			margin-left: -30%;
			width: 60%;
		}
		.chat{
			float: left;
			display: block;
			width: calc(33.33% - 7px);
			margin-right: 10px;
		}
		.chat:last-child{
			margin-right: 0;
		}
		.chat img{
			display: block;
			width: 100%;
		}
		.circle{
			display: inline-block;
			width:0.16rem;
			height: 0.16rem;
			background: #f27ce6;
			border-radius:50%;
			margin-right:5px;
		}
		.circle:last-child{
			margin-right:0;
		}
		.item-more{
			display: flex;
			justify-content:center;
			align-items:Center;
		}
		.swiper-container {
			width: 100%;
		}
		.swiper-slide img{
			display: block;
			width: 100%;
		}
		.swiper-slide a{
			display: block;
		}
		#cnzz_stat_icon_1262935264{
			display: none;
		}
	</style>
	<link href="/layui/css/layui.css" rel="stylesheet"/>
	<link rel="stylesheet" href="/assets/activity/jindi/css/swiper.min.css">
	<script type="text/javascript" src="/assets/js/rem.js"></script>
	<script type='text/javascript'>
		var _czc = _czc || [];
		_czc.push(["_setAccount", "1262935264"]);
	</script>
	<script type='text/javascript'>
		var _vds = _vds || [];
		window._vds = _vds;
		(function(){
			_vds.push(['setAccountId', '9e08a74ce4f5008b']);
			(function() {
				var vds = document.createElement('script');
				vds.type='text/javascript';
				vds.async = true;
				vds.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'dn-growing.qbox.me/vds.js';
				var s = document.getElementsByTagName('script')[0];
				s.parentNode.insertBefore(vds, s);
			})();
		})();
	</script>
	<script type="text/javascript">
		var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
		document.write(unescape("%3Cspan id='cnzz_stat_icon_1262935264'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D1262935264' type='text/javascript'%3E%3C/script%3E"));
	</script>
</head>
<body style="margin: 0 auto;">
<div class="header">
	<?php if (isset($nb) && $nb == 1) : ?>

	<?php else : ?>
		<img src="/html/daikuan/img/headpic.jpg" alt="" class="header-pic">
	<?php endif; ?>
<!--	<div class="custom-service clearfix">-->
<!--		<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=3370636277&site=qq&menu=yes" class="chat"><img src="/html/daikuan/img/chat1.png" alt=""></a>-->
<!--		<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=3370636277&site=qq&menu=yes" class="chat"><img src="/html/daikuan/img/chat2.png" alt=""></a>-->
<!--		<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=3370636277&site=qq&menu=yes" class="chat"><img src="/html/daikuan/img/chat3.png" alt=""></a>-->
<!--	</div>-->
<!--	<div class="swiper-container">-->
<!--		<div class="swiper-wrapper">-->
<!--			<div class="swiper-slide"><a href="http://t.cn/RK9I5qX"><img src="/html/daikuan/img/banner1.jpg" alt=""></a></div>-->
<!--			<div class="swiper-slide"><a href="http://t.cn/RK9tkgD"><img src="/html/daikuan/img/banner2.jpg" alt=""></a></div>-->
<!--		</div>-->
<!--		<!-- Add Pagination -->
<!--		<div class="swiper-pagination"></div>-->
<!--		<!-- Add Arrows -->
<!--		<div class="swiper-button-next"></div>-->
<!--		<div class="swiper-button-prev"></div>-->
<!--	</div>-->

</div>
<div class="main">
	<ul class="list">
		<?php if ($data[1]) : ?>
		<?php foreach ($data[1] as $key => $val) : ?>
		<li>
			<a href="javascript:;" onclick="redirectTo('<?php e($val->link); ?>',<?php e($val->id); ?>,'<?php e($val->name); ?>')" class="clearfix">
				<span class="ranking">Top<?php e($key+1);?></span>
				<div class="logo">
					<img src="<?php e($val->absolute_url); ?>" alt="">
				</div>
				<div class="introduce">
					<h3><?php e($val->name); ?></h3>
					<p class="summary"><?php e($val->desc); ?></p>
				</div>
				<span class="arrow">&#155</span>
			</a>
		</li>
		<?php endforeach; ?>
		<?php endif; ?>
	</ul>
	<ul class="middle-list">
		<?php if ($data[2]) : ?>
		<?php foreach ($data[2] as $key => $val) : ?>
		<li class="middle-item">
			<a href="javascript:;" onclick="redirectTo('<?php e($val->link); ?>',<?php e($val->id); ?>,'<?php e($val->name); ?>')">
				<div class="logo"><img src="<?php e($val->absolute_url); ?>" alt=""></div>
				<h3><?php e($val->name); ?></h3>
				<p class="summary"><?php e($val->desc); ?></p>
			</a>
		</li>
		<?php endforeach; ?>
		<?php endif; ?>
		<li class="middle-item item-more">
			<span class="circle"></span>
			<span class="circle"></span>
			<span class="circle"></span>
		</li>
	</ul>
	<div class="credit-card">
		<h2>热门信用卡推荐</h2>
		<ul class="card-list">
			<?php if ($data[3]) : ?>
			<?php foreach ($data[3] as $key => $val) : ?>
			<li class="card-item">
				<a href="javascript:;" onclick="redirectTo('<?php e($val->link); ?>',<?php e($val->id); ?>,'<?php e($val->name); ?>')">
					<span class="ranking">Top<?php e($key+1);?></span>
					<span class="tab"><?php e($val->name); ?></span>
					<div class="item-con clearfix">
						<div class="item-left">
							<img src="<?php e($val->absolute_url); ?>" alt="" class="card">
						</div>
						<div class="item-right">
							<p>小编推荐：</p>
							<p><?php e($val->desc); ?></p>
							<div class="tags clearfix">
								<span>推荐热卡</span>
								<span>易申请</span>
							</div>
						</div>
					</div>
				</a>
			</li>
			<?php endforeach; ?>
			<?php endif; ?>
		</ul>
	</div>
</div>
	<script src="/assets/js/building/jquery-1.11.1.min.js"></script>
	<script type="text/javascript" src="/assets/activity/jindi/js/swiper.min.js"></script>
	<script src="/layui/lay/dest/layui.all.js"></script>
	<script src="/layui/custom.js"></script>
	<script>
	var swiper = new Swiper('.swiper-container', {
		pagination: '.swiper-pagination',
		nextButton: '.swiper-button-next',
		prevButton: '.swiper-button-prev',
		paginationClickable: true,
		spaceBetween: 0,
		centeredSlides: true,
		autoplay: 2500,
		loop: true,
		autoplayDisableOnInteraction: false
	});
	</script>

	<script>

		var isLogin = "<?php echo $isLogin;?>";
		var qd = "<?php echo $qd;?>";
		$(function () {
			var num = $('.middle-list').children('li').length;
			if(num%2 ==0){
				$(".item-more").show();
			}else{
				$(".item-more").hide();
			}
		});
		function redirectTo(url,project,name){
			_czc.push(['_trackEvent', name, '点击', project]);
			if(isLogin == "" || undefined || 0 ){
				$.popPage({
							url: '/Activity/tanchuang',
							title: "登录",
							data:{'link':url}
						},
						{
							height:$(window).height()
						});
			}else{
				window.location.href = url;
			}
		}
		$(document).on('click','.btn-close',function(){
			$(this).parents('.msg-tips').fadeOut();
		})


	</script>
</body>

</html>